Skip to content

docs: websockets do not work with vite dev server pre-Deno 2.8 and Fresh 2.4#3822

Merged
bartlomieju merged 2 commits into
freshframework:mainfrom
will-weiss:no-ws-with-vite-dev
May 27, 2026
Merged

docs: websockets do not work with vite dev server pre-Deno 2.8 and Fresh 2.4#3822
bartlomieju merged 2 commits into
freshframework:mainfrom
will-weiss:no-ws-with-vite-dev

Conversation

@will-weiss

Copy link
Copy Markdown
Contributor

Updating the docs to reflect the fact that upgrading websocket requests isn't currently supported by the vite dev server.

This cost me some time as there isn't any warning in the console on the server, the upgrade request merely hangs. Perhaps that could be fixed as well, but this update to the docs (while verbose) would document the behavior.

@bartlomieju

Copy link
Copy Markdown
Contributor

This is expected to work with Deno V2.8: https://deno.com/blog/v2.8#miscellaneous

@will-weiss

Copy link
Copy Markdown
Contributor Author

@bartlomieju thanks for the quick response!

Hm, I am running deno 2.8 and yet I still appear to be encountering this issue.

@bartlomieju

Copy link
Copy Markdown
Contributor

Good catch, I forgot about a counterpart needed in Fresh. I opened #3823 to fix that and will do a 2.4 release afterwards.

@bartlomieju bartlomieju changed the title [docs] websockets do not work with vite dev server docs: websockets do not work with vite dev server pre-Deno 2.8 and Fresh 2.4 May 27, 2026
@bartlomieju bartlomieju merged commit acd04e1 into freshframework:main May 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants